<?php
return [
    'default' => env('ELASTICSEARCH_CONNECTION', null),
    'connections' => [
        'default' => [
            'hosts' => [
                [
                    'scheme' => env('ELASTICSEARCH_SCHEME', null),
                    'host' => env('ELASTICSEARCH_HOST', 'localhost'),
                    'port' => env('ELASTICSEARCH_PORT', 9200),
                    'user' => env('ELASTICSEARCH_USER', null),
                    'pass' => env('ELASTICSEARCH_PASS', null)
                ]
            ]
        ]
    ],
    'index' => [
        'max_result_window' => env('ELASTICSEARCH_MAX_RESULT_WINDOW', 1000000)
    ],
    'search' => [
        'max_buckets' => env('ELASTICSEARCH_SEARCH_MAX_BUCKETS', 65536)
    ]
];
